package com.woniuxy.auth.service.impl;

import com.hc.entity.User;
import com.woniuxy.auth.mapper.UserMapper;
import com.woniuxy.auth.service.UserService;
import org.bouncycastle.asn1.x509.UserNotice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName UserServiceImpl
 * @Description
 * @Author shanshan
 * @Date 2022/10/24 8:48
 * @Version 1.0
 **/
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(User user) {

        return userMapper.getByAccountAndPwd(user);
    }
}